import { post } from '@/utils/http'

// 数据统计
export const getStatisticsAPI = (data) => post({ url: '/V5/workOrderV5/getStatistics', data })
// 列表查询
export const getPageListAPI = (data) => post({ url: '/V5/workOrderV5/getPageList', data })
// 指派负责人
export const assignDutyPeopleAPI = (data) => post({ url: '/V5/workOrderV5/assignDutyPeople', data })
// 接受工单
export const acceptWorkAPI = (data) => post({ url: '/V5/workOrderV5/acceptWork', data })
// 拒绝工单
export const refuseWorkAPI = (data) => post({ url: '/V5/workOrderV5/refuseWork', data })
// 申请改派
export const applyForReassignmentAPI = (data) => post({ url: '/V5/workOrderV5/applyForReassignment', data })
// 审核改派
export const examineReassignmentAPI = (data) => post({ url: '/V5/workOrderV5/examineReassignment', data })
// 去处理（交车/还车/换车）
export const goHandleAPI = (data) => post({ url: '/V5/workOrderV5/goHandle', data })
// 车辆入库
export const carInStorageAPI = (data) => post({ url: '/V5/workOrderV5/carInStorage', data })
// 关闭工单
export const closeWorkAPI = (data) => post({ url: '/V5/workOrderV5/closeWork', data })
// 修改车辆入库信息
export const updateCarInStorageAPI = (data) => post({ url: '/V5/workOrderV5/updateCarInStorage', data })
// 创建换车单
export const createReplaceCarWorkAPI = (data) => post({ url: '/V5/workOrderV5/createReplaceCarWork', data })
// 导出工单
export const exportAPI = (data) => post({ url: '/V5/workOrderV5/export', data })
// 工单详情
export const detailAPI = (data) => post({ url: '/V5/workOrderV5/detail', data })
// 完成交车
export const finishGiveCarAPI = (data) => post({ url: '/V5/workOrderV5/finishGiveCar', data })
// 完成取车
export const finishReturnCarAPI = (data) => post({ url: '/V5/workOrderV5/finishReturnCar', data })
// 完成换车
export const finishReplaceCarAPI = (data) => post({ url: '/V5/workOrderV5/finishReplaceCar', data })

// 获取关联订单详情
export const getOrderDetailAPI = (data) => post({ url: '/V5/workOrderV5/getOrderDetail', data })
// 获取关联订单-费用信息
export const getOrderFeeAPI = (data) => post({ url: '/V5/workOrderV5/getOrderFee', data })
// 获取关联订单-换车信息
export const getOrderReplaceListAPI = (data) => post({ url: '/V5/workOrderV5/getOrderReplaceList', data })
// 获取换车关联订单号
export const getReplaceOrderNoAPI = (data) => post({ url: '/V5/workOrderV5/getReplaceOrderNo', data })
// 获取页面枚举数据
export const workOrderGetEnumsAPI = (data) => post({ url: '/V5/workOrderV5/getEnums', data })
// 获取指派人
export const getWorkCompleteAPI = (data) => post({ url: '/V5/carHousekeep/getWorkComplete', data })
// 工单产生的运营成本  列表
export const getCostListAPI = (data) => post({ url: '/V5/cost/list', data })
